package com.xframe.xdal.core.util;

import cn.hutool.core.lang.Snowflake;

/**
 * 功能描述:雪花ID生成器
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-10-02
 */
public class IdCreateUtil {

    private static Snowflake snowflake;

    static {
        snowflake = new Snowflake(1L,1L);
    }

    public static Long getSnowflakeId(){
        return snowflake.nextId();
    }
}
